<?php

defined('MYLITS') ? '' : exit('No direct script access allowed');

/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Arfan Fudyartanto D N <arfan@mylits.com> - http://engine.mylits.com
 */
class usersProcess extends Mylits_Process {

    function __construct() {
        parent::__construct();
        $this->setTemplate('userlist');
        $this->model = $this->loadModel('users');
    }

    public function response() {
        $users = $this->model->getUserList();
        $urlAdd = BASE_URL . $this->getComponentName() . '/view.add';
        $urlEdit = BASE_URL . $this->getComponentName() . '/view.edit';
        $urlDell = BASE_URL . $this->getComponentName() . '/do.delete';
        return compact('users', 'urlAdd', 'urlEdit', 'urlDell');
    }

}

?>
